package beans;

import java.util.ArrayList;
import java.util.Date;

public class Thread {
	private int id;
	private int boxID;
	private Account account;
	private String title;
	private String content;
	private int see;
	private int reply;
	private int state;
	private Date posted;
	private ArrayList<Comment> comments;

	public Thread(int id, int bid, Account account, String title,
			String content, int see, int reply, int state, Date posted) {
		this.id = id;
		this.boxID = bid;
		this.account = account;
		this.title = title;
		this.content = content;
		this.see = see;
		this.reply = reply;
		this.state = state;
		this.posted = posted;
	}

	public Thread(int id, int bid, Account account, String title, int see,
			int reply, int state, Date posted) {
		this.id = id;
		this.boxID = bid;
		this.account = account;
		this.title = title;
		this.see = see;
		this.reply = reply;
		this.state = state;
		this.posted = posted;
	}

	public Thread(int id, Account account, String title, int see, int reply) {
		this.id = id;
		this.account = account;
		this.title = title;
		this.see = see;
		this.reply = reply;
	}

	public Thread(int id, String title, Date posted) {
		super();
		this.id = id;
		this.title = title;
		this.posted = posted;
	}

	public Thread(int id, String title, String content) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getSee() {
		return see;
	}

	public void setSee(int see) {
		this.see = see;
	}

	public Date getPosted() {
		return posted;
	}

	public void setPosted(Date posted) {
		this.posted = posted;
	}

	public ArrayList<Comment> getComments() {
		return comments;
	}

	public void setComments(ArrayList<Comment> comments) {
		this.comments = comments;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getBoxID() {
		return boxID;
	}

	public void setBoxID(int boxID) {
		this.boxID = boxID;
	}

	public int getReply() {
		return reply;
	}

	public void setReply(int reply) {
		this.reply = reply;
	}

	// public static Thread createThreadNotContent(ResultSet rs, Account acc)
	// throws SQLException {
	// Thread thread = new Thread(rs.getInt("id"), rs.getInt("box_id"), acc,
	// rs.getString("title"), rs.getInt("see"), rs.getInt("reply"),
	// rs.getInt("state"), rs.getDate("posted"));
	// return thread;
	// }
	//
	// public static Thread createThread(ResultSet rs, Account acc)
	// throws SQLException {
	// Thread thread = new Thread(rs.getInt("id"), rs.getInt("box_id"), acc,
	// rs.getString("title"), rs.getString("content"),
	// rs.getInt("see"), rs.getInt("reply"), rs.getInt("state"),
	// rs.getDate("posted"));
	// return thread;
	// }

}
